package com.kinghood.productcenter.common.model.dao.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 业务日志表
 * </p>
 *
 * @author KingHood
 * @since 2023-12-20
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("business_log")
public class BusinessLogDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品id
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 商品id
     */
    @TableField("sku_id")
    private Long skuId;

    /**
     * 操作类型(1:新增，2:修改)
     */
    @TableField("operate")
    private Integer operate;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 创建人人id
     */
    @TableField("create_user_id")
    private Long createUserId;
}
